package com.bean;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="collectMessage")
public class CollectMessage {

	@Id
	private String id;
	private ObjectId oldId;
	private String textTypes;//article
	private User users;
	private String createDate;
	
	public CollectMessage(ObjectId oldId, String textTypes, User users,
			String createDate) {
		super();
		this.oldId = oldId;
		this.textTypes = textTypes;
		this.users = users;
		this.createDate = createDate;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public ObjectId getOldId() {
		return oldId;
	}
	public void setOldId(ObjectId oldId) {
		this.oldId = oldId;
	}
	public String getTextTypes() {
		return textTypes;
	}
	public void setTextTypes(String textTypes) {
		this.textTypes = textTypes;
	}
	public User getUsers() {
		return users;
	}
	public void setUsers(User users) {
		this.users = users;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
}
